<div id="searchOwnerModel" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="searchOwnerModelLabel"
    aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <h3 class="modal-title" id="searchOwnerModelLabel">
                    <span>
                        <vc:i18n name="选择业主" namespace="searchOwner"></vc:i18n>
                    </span>
                </h3>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">

                <div class="ibox ">
                    <div class="row">
                        <div class="col-sm-4 m-b-xs">
                            <div class="input-group">
                                <input :placeholder="vc.i18n('输入房屋编号楼栋-单元-房屋','searchOwner')" type="text"
                                    v-model.trim="searchOwnerInfo.roomName" class="form-control form-control-sm">
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <div class="input-group">
                                <input :placeholder="vc.i18n('输入业主名称','searchOwner')" type="text"
                                    v-model.trim="searchOwnerInfo._currentOwnerName"
                                    class="form-control form-control-sm" style="margin-right: 10px">
                            </div>
                        </div>
                        <div class="col-sm-3">
                            <button type="button" class="btn btn-sm btn-primary" v-on:click="searchOwners()"
                                style="margin-right: 10px">
                                <i class="fa fa-search"></i>
                                <span>
                                    <vc:i18n name="查询" namespace="searchOwner"></vc:i18n>
                                </span>
                            </button>
                            <button type="button" class="btn btn-sm btn-primary" v-on:click="resetOwners()"
                                style="margin-right: 5px">
                                    <vc:i18n name="重置" namespace="searchOwner"></vc:i18n>
                            </button>
                        </div>
                    </div>
                    <div class="table-responsive" style="margin-top:15px">
                        <table class="table table-striped">
                            <thead>
                                <tr>
                                    <th class="text-center">
                                        <vc:i18n name="业主编号" namespace="searchOwner"></vc:i18n>
                                    </th>
                                    <th class="text-center">
                                        <vc:i18n name="名称" namespace="searchOwner"></vc:i18n>
                                    </th>
                                    <th data-hide="phone" class="text-center">
                                        <vc:i18n name="人员类型" namespace="searchOwner"></vc:i18n>
                                    </th>
                                    <th data-hide="phone" class="text-center">
                                        <vc:i18n name="人员角色" namespace="searchOwner"></vc:i18n>
                                    </th>

                                    <th class="text-center">
                                        <vc:i18n name="证件号" namespace="searchOwner"></vc:i18n>
                                    </th>
                                    <th class="text-center">
                                        <vc:i18n name="联系方式" namespace="searchOwner"></vc:i18n>
                                    </th>
                                    <th class="text-center">
                                        <vc:i18n name="操作" namespace="searchOwner"></vc:i18n>
                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr v-for="owner in searchOwnerInfo.owners">
                                    <td class="text-center">
                                        {{owner.memberId}}
                                    </td>
                                    <td class="text-center">
                                        {{owner.name}}
                                    </td>
                                    <td class="text-center">
                                        {{owner.personTypeName}}
                                    </td>
                                    <td class="text-center">
                                        {{owner.personRoleName}}
                                    </td>
                                    <td class="text-center">
                                        {{owner.idCard}}
                                    </td>
                                    <td class="text-center">
                                        {{owner.link}}
                                    </td>
                                    <td class="text-center">
                                        <button class="btn btn-primary btn-xs" v-on:click="chooseOwner(owner)">
                                            <vc:i18n name="选择" namespace="searchOwner"></vc:i18n>
                                        </button>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <vc:create namespace="searchOwner" path="frame/paginationPlus"></vc:create>
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>